import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class NTheme with ChangeNotifier {
  ThemeData _theme;
  List<Color> _todoListBoxTitle;

  List<Color> get todoListBoxTitle => _todoListBoxTitle;

  ThemeData get theme => _theme;

  NTheme() {
    light();
  }

  void light() {
    _theme = ThemeData.light();
    _todoListBoxTitle = <Color>[Colors.black, Colors.red];
    notifyListeners();
  }

  void dark() {
    _theme = ThemeData.dark();
    _todoListBoxTitle = <Color>[Colors.black, Colors.red];
    notifyListeners();
  }

  void toggle() {
    _theme.brightness == Brightness.light ? this.dark() : this.light();
  }
}
